package com.heima.behavior.controller;

import com.heima.behavior.dto.UnLikesBehaviorDto;
import com.heima.behavior.service.IUnlikeService;
import com.heima.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1/unlikes_behavior")
public class UnlikesController {
    @Autowired
    private IUnlikeService unlikeService;

    /**
     *不喜欢行为
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto dto){
        return unlikeService.unlke(dto);
    }
}
